package com.base.common.persistent.model;

import java.util.List;

/**
 * 市级实体类
 * 
 * @author kat.luhongkai
 * 
 */
public class City {
	private int id; // 主键id
	private String name; // 城市名称
	private String zipCode; // 邮编
	private Province province; // 省份
	private List<District> districts;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	/**
	 * @return the districts
	 */
	public List<District> getDistricts() {
		return districts;
	}

	/**
	 * @param districts
	 *            the districts to set
	 */
	public void setDistricts(List<District> districts) {
		this.districts = districts;
	}

}
